<template>
  <div class="home-container">
    <div class="home">
      <p class="system-welcome">
        <span
          >尊敬的{{
            permissionStore?.userInfo?.displayName
          }}您好！欢迎来到格力掌上通后台管理系统。</span
        >
      </p>
      <p class="system-warning">您已同意《用户管理办法》，请注意数据安全。</p>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { usePermissionStore } from "store/modules/permission";

const permissionStore = usePermissionStore();
</script>

<style lang="scss" scoped>
.home-container {
  margin-top: -15px;
  margin-left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 30px);
  background-color: #ccc;
  border-radius: 8px;

  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url("../../assets/images/home.png");

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.home {
  width: 666px;
  height: 198px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0px 6px 24px 0px #041c6e;
  line-height: 22px;
  .system-welcome {
    margin-top: 55px;
    font-size: 18px;
    font-family: Alibaba PuHuiTi, Alibaba PuHuiTi-Regular;
    font-weight: 400;
    color: #001529;
    animation: system_welcome 0.4s 0.3s ease-in both;
    .system-title {
      margin-left: 5px;
      color: #0c3ca8;
      font-size: 24px;
    }
  }
  .system-warning {
    font-size: 16px;
    font-family: Alibaba PuHuiTi, Alibaba PuHuiTi-Bold;
    font-weight: 700;
    color: #ff0000;
    animation: system_warning 0.6s 0.8s ease-in both;
  }
}
@keyframes system_welcome {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes system_warning {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
</style>
